Skip to content

Add unit tests, extract utils, and README banner#3

Merged
bendns merged 1 commit intomainfrom
feat/add-tests-and-banner
Mar 28, 2026
Merged

Add unit tests, extract utils, and README banner#3
bendns merged 1 commit intomainfrom
feat/add-tests-and-banner

Conversation

@bendns
Copy link
Copy Markdown
Owner

@bendns bendns commented Mar 28, 2026

Summary

  • Extract pure business logic into src/lib/utils.js (haversine, fairness, formatting, centroid, tooFarApart)
  • Add 24 unit tests with Vitest in src/lib/utils.test.js
  • Add tests to CI pipeline and pre-commit hook
  • Add banner image to README
  • Update CLAUDE.md with testing workflow instructions

Parts of this fix were generated with Claude Code assistance.

- Extract pure business logic into utils.js (haversine, fairness, formatting)
- Add 24 unit tests with Vitest covering all utils functions
- Add tests to CI pipeline and pre-commit hook
- Add README banner image
- Update CLAUDE.md with testing workflow instructions
@bendns bendns merged commit dd7ed12 into main Mar 28, 2026
1 check passed
@bendns bendns deleted the feat/add-tests-and-banner branch March 28, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant